Package com.cisco.pt.ipc.sim.impl
Class RouterImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.DeviceImpl
com.cisco.pt.ipc.sim.impl.CiscoDeviceImpl
com.cisco.pt.ipc.sim.impl.RouterImpl
- All Implemented Interfaces:
IPCObject,CiscoDevice,Device,Router
- Direct Known Subclasses:
WirelessRouterImpl
Information provided by the PKI file:
\class Router
\brief Router is the base class for all router devices.
\example network().getDevice("Router0")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionRouterImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanInformation provided by the PKI file:voidaddUserPass(String username, String password, int type) Information provided by the PKI file:booleanchangePortEncapsulation(String portname, String encapsulationType) Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:getUserPass(String username) Information provided by the PKI file:intInformation provided by the PKI file:booleanremoveSubInt(String portName) Information provided by the PKI file:voidremoveUserPass(String username) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.CiscoDeviceImpl
addBootSystem, addUserPassEntry, clearFtpPasswd, clearFtpUsername, enterCommand, getBannerMotd, getBia, getBootSystems, getConfigRegister, getConsole, getConsoleLine, getEnablePassword, getEnableSecret, getFtpPasswd, getFtpUsername, getHostName, getIpcTerminalLine, getLine, getNextConfigRegister, getServicePasswordEncryption, getStartupFile, getTimeZone, getUserEntryAt, getVtyLine, isBooting, isUserExist, removeAllBootSystem, removeBootSystem, removeUserPassAt, removeUserPassEntry, setBannerMotd, setEnablePassword, setEnableSecret, setFtpPasswd, setFtpUsername, setHostName, setNextConfigRegister, setServicePasswordEncryption, setStartupFile, setTimeZone, skipBootMethods inherited from class com.cisco.pt.ipc.sim.impl.DeviceImpl
activityTreeToXml, addCustomVar, addDeviceExternalAttributes, addModule, addProgrammingSerialOutputs, addSound, addUserDesktopApp, addUserDesktopAppFromGlobal, clearDeviceExternalAttributes, clearProgrammingSerialOutputs, destroySounds, getAreaLeftX, getAreaTopY, getCenterXCoordinate, getCenterYCoordinate, getCommandLine, getCustomInterface, getCustomLogicalImage, getCustomPhysicalImage, getCustomVarNameAt, getCustomVarsCount, getCustomVarStr, getCustomVarValueStrAt, getDescriptor, getDeviceExternalAttributes, getDeviceExternalAttributeValue, getGlobalXPhysicalWS, getGlobalYPhysicalWS, getModel, getName, getPhysicalObject, getPort, getPortAt, getPortCount, getPorts, getPower, getProcess, getProgrammingSerialOutputs, getRootModule, getSerialNumber, getSupportedModule, getType, getUpTime, getUsbPortAt, getUsbPortCount, getUserDesktopAppAt, getUserDesktopAppByDir, getUserDesktopAppById, getUserDesktopAppCount, getXCoordinate, getXPhysicalWS, getYCoordinate, getYPhysicalWS, hasCustomVar, isDesktopAvailable, isOutdated, isProjectRunning, moveByInPhysicalWS, moveToLocation, moveToLocationCentered, moveToLocInPhysicalWS, playSound, relinkUserDesktopApp, removeCustomVar, removeModule, removeUserDesktopApp, restoreToDefault, runCodeInProject, runProject, serializeToXml, setCustomInterface, setCustomLogicalImage, setCustomPhysicalImage, setDeviceExternalAttributes, setName, setPower, setTime, stopProject, stopSound, stopSounds, subtractDeviceExternalAttributes, updateTemplateCreationTimeMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.CiscoDevice
addBootSystem, addUserPassEntry, clearFtpPasswd, clearFtpUsername, enterCommand, getBannerMotd, getBia, getBootSystems, getConfigRegister, getConsole, getConsoleLine, getEnablePassword, getEnableSecret, getFtpPasswd, getFtpUsername, getHostName, getIpcTerminalLine, getLine, getNextConfigRegister, getServicePasswordEncryption, getStartupFile, getTimeZone, getUserEntryAt, getVtyLine, isBooting, isUserExist, removeAllBootSystem, removeBootSystem, removeUserPassAt, removeUserPassEntry, setBannerMotd, setEnablePassword, setEnableSecret, setFtpPasswd, setFtpUsername, setHostName, setNextConfigRegister, setServicePasswordEncryption, setStartupFile, setTimeZone, skipBootMethods inherited from interface com.cisco.pt.ipc.sim.Device
activityTreeToXml, addCustomVar, addDeviceExternalAttributes, addModule, addProgrammingSerialOutputs, addSound, addUserDesktopApp, addUserDesktopAppFromGlobal, clearDeviceExternalAttributes, clearProgrammingSerialOutputs, destroySounds, getAreaLeftX, getAreaTopY, getCenterXCoordinate, getCenterYCoordinate, getCommandLine, getCustomInterface, getCustomLogicalImage, getCustomPhysicalImage, getCustomVarNameAt, getCustomVarsCount, getCustomVarStr, getCustomVarValueStrAt, getDescriptor, getDeviceExternalAttributes, getDeviceExternalAttributeValue, getGlobalXPhysicalWS, getGlobalYPhysicalWS, getModel, getName, getPhysicalObject, getPort, getPortAt, getPortCount, getPorts, getPower, getProcess, getProgrammingSerialOutputs, getRootModule, getSerialNumber, getSupportedModule, getType, getUpTime, getUsbPortAt, getUsbPortCount, getUserDesktopAppAt, getUserDesktopAppByDir, getUserDesktopAppById, getUserDesktopAppCount, getXCoordinate, getXPhysicalWS, getYCoordinate, getYPhysicalWS, hasCustomVar, isDesktopAvailable, isOutdated, isProjectRunning, moveByInPhysicalWS, moveToLocation, moveToLocationCentered, moveToLocInPhysicalWS, playSound, relinkUserDesktopApp, removeCustomVar, removeModule, removeUserDesktopApp, restoreToDefault, runCodeInProject, runProject, serializeToXml, setCustomInterface, setCustomLogicalImage, setCustomPhysicalImage, setDeviceExternalAttributes, setName, setPower, setTime, stopProject, stopSound, stopSounds, subtractDeviceExternalAttributes, updateTemplateCreationTimeMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
RouterImpl
public RouterImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
addSubInt
Information provided by the PKI file:
\brief Adds a subinterface to the specified port. \param portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \param subIntNum, the subinterface number. -
removeSubInt
Information provided by the PKI file:
\brief Removes the subinterface from the specified port. \param portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0- Specified by:
removeSubIntin interfaceRouter- Parameters:
portName- Takes in a parameter of portName- Returns:
- boolean Returns a boolean
-
changePortEncapsulation
Information provided by the PKI file:
\brief Changes the encapsulation on the specified port. \param portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \param encapsulationType, the encapsulation type. Encapsulation types: hdlc, ppp, frameRelay, arpa, dot1Q \return bool, true if successful, otherwise false.- Specified by:
changePortEncapsulationin interfaceRouter- Parameters:
portname- Takes in a parameter of portnameencapsulationType- Takes in a parameter of encapsulationType- Returns:
- boolean Returns a boolean
-
addUserPass
Information provided by the PKI file:
\brief Adds a user account. \param username, the username. \param password, the password. \param int, the type.- Specified by:
addUserPassin interfaceRouter- Parameters:
username- Takes in a parameter of usernamepassword- Takes in a parameter of passwordtype- Takes in a parameter of type
-
removeUserPass
Information provided by the PKI file:
\brief Removes the specified user account. \param username, the username of interest.- Specified by:
removeUserPassin interfaceRouter- Parameters:
username- Takes in a parameter of username
-
getUserPass
Information provided by the PKI file:
\brief Returns the password of the specified username. \param username, the username of interest. \return string, the password of the specified username.- Specified by:
getUserPassin interfaceRouter- Parameters:
username- Takes in a parameter of username- Returns:
- String Returns a String
-
getUserPassCount
public int getUserPassCount()Information provided by the PKI file:
\brief Returns the number of user accounts. \return int, the number of user accounts.- Specified by:
getUserPassCountin interfaceCiscoDevice- Specified by:
getUserPassCountin interfaceRouter- Overrides:
getUserPassCountin classCiscoDeviceImpl- Returns:
- int Returns a int
-
getClassMapManager
Information provided by the PKI file:
\brief Returns the class map manager. \return ClassMapManager, the ClassMapManager object.- Specified by:
getClassMapManagerin interfaceRouter- Returns:
- ClassMapManager Returns a ClassMapManager
-
getPolicyMapManager
Information provided by the PKI file:
\brief Returns the policy map manager. \return PolicyMapManager, the PolicyMapManager object.- Specified by:
getPolicyMapManagerin interfaceRouter- Returns:
- PolicyMapManager Returns a PolicyMapManager
-
getParameterMapManager
Information provided by the PKI file:
\brief Returns the parameter map manager. \return ParameterMapManager, the ParameterMapManager object.- Specified by:
getParameterMapManagerin interfaceRouter- Returns:
- ParameterMapManager Returns a ParameterMapManager
-
getNetflowMonitorManager
Information provided by the PKI file:
\brief Returns the flow monitor manager. \return FlowMonitorManager, the FlowMonitorManager object.- Specified by:
getNetflowMonitorManagerin interfaceRouter- Returns:
- FlowMonitorManager Returns a FlowMonitorManager
-
getNetflowRecordManager
Information provided by the PKI file:
\brief Returns the flow record manager. \return FlowRecordManager, the FlowRecordManager object.- Specified by:
getNetflowRecordManagerin interfaceRouter- Returns:
- FlowRecordManager Returns a FlowRecordManager
-
getNetflowExporterManager
Information provided by the PKI file:
\brief Returns the NetFlow exporter manager. \return NFExporterManager, the NFExporterManager object.- Specified by:
getNetflowExporterManagerin interfaceRouter- Returns:
- NFExporterManager Returns a NFExporterManager
-